<template>
  <div class="box">
    <img src="../../assets/images/error_images/404.jfif" alt="" />
    <el-button class="btn" type="primary" size="large" @click="goHome">
      返回首页
    </el-button>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

let router = useRouter()

const goHome = () => {
  router.replace('/')
}
</script>

<style scoped lang="scss">
.box {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  img {
    width: 100%;
    height: 100%;
  }
  .btn {
    position: absolute;
    top: 500px;
    left: 1100px;
  }
}
</style>
